package com.abel.serviceuser.mapper;

import com.abel.servicemodel.user.Login;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

@Mapper
public interface LoginMapper {
    @Select("select * from login where username=#{username}")
    @Results({
            @Result(id = true,column = "id",property = "id"),
            @Result(column = "username",property = "username"),
            @Result(column = "pwd",property = "pwd"),
            @Result(column = "crt_time",property = "crt_time")
    })
    Login findPwdByUserName(@Param("username") String username);
}
